package com.sf.fy.uav.common.request.order;

import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

/**
 * @author 01430312
 */
@Data
@Validated
public class CommodityRequest {
    @ApiModelProperty("购买的商品id")
    @NotBlank(message = "购买的商品id不能为空")
    private String id;
    @ApiModelProperty("购买的商品数量")
    @NotNull(message = "购买的商品数量不能为空")
    private Integer cnt;
}
